
cap log close
log using "$logs/cr-seda-gaps.log", replace

use "$raw/seda/SEDA_county_pool_cs_v30.dta", clear
keep if subgroup == "wbg"
keep countyid countyname fips stateabb mn_avg_ol mn_avg_ol_se
egen rm = rowmiss(*)
assert rm==2|rm==0
keep if rm == 0
drop rm
isid countyid fips 
destring countyid, replace

save "$data/sedagaps.dta", replace

log close
